﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Content/Master.Master" Inherits="System.Web.Mvc.ViewPage<SCS.Core.Models.Collection.TypeSupportCollection>" %>
<%@ Import Namespace="SCS.Core" %>
<%@ Import Namespace="SCS.Core.Models" %>
<%@ Import Namespace="SCS.Core.ViewModels" %>
<%@ Import Namespace="SCS.Core.Controllers" %>
<%@ Import Namespace="SCSService" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
   Hỗ trợ
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="/ThemeExtends/AdminSkin/js/jquery.flot.js"></script>
    <script type="text/javascript" src="/ThemeExtends/AdminSkin/js/jquery.flot.stack.js"></script>	
    <link rel="stylesheet" type="text/css" href="/Content/smoothness-1.8.13/jquery-ui-1.8.13.custom.css"/>
    <link rel="stylesheet" type="text/css" href="/Content/smoothness-1.8.13/ui.dropdownchecklist.themeroller.css"/>
    <script type="text/javascript" src="/Scripts/jquery-1.6.1.min.js"></script>
    <script type="text/javascript" src="/Scripts/jquery-ui-1.8.13.custom.min.js"></script>
    <script type="text/javascript" src="/Scripts/ui.dropdownchecklist-1.4-min.js"></script>
    <script type="text/javascript" src="/Scripts/ui.dropdownchecklist.js"></script>
    <%--Validator--%>
    <script src="/Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="/Scripts/MicrosoftMvcJQueryValidation.js" type="text/javascript"></script>

    

    <% Html.EnableClientValidation(); %>
   
         <% using (Html.BeginForm((bool)ViewData["IsAdd"] ? "SaveAddSupport" : "SaveEditSupport", "AdvantageSetting", FormMethod.Post, new { siteGuid = "sendFileForm", language = "sendFileForm", id = "sendFileForm", enctype = "multipart/form-data" }))
            {
                try
                {%>
     
     <div class="clear"></div>
       
        <div class="box ">
		        <h2 class="box-header"><%=(bool)ViewData["IsAdd"] ? "Tạo mới danh mục sản phẩm" : "Sửa Danh mục sản phẩm"%></h2>

          <div class="box-content">         
                  <label class="form-label">Tên Hỗ trợ </label>
                 <%= Html.TextBoxFor(m => m.SupportName, new { @class = "form-field small" })%>

                 <br /><br />
                 <label class="form-label">Kiểu hỗ trợ </label>
                 <%= Html.TextBoxFor(m => m.SupportType, new { @class = "form-field small" })%>
                 <br /><br />
                <label class="form-label"> Mô tả </label>
                 <%= Html.TextAreaFor(m => m.SupportText, new { @class = "form-field small" })%>
                 <%=Html.TextBoxFor(m => m.SupportID, new { @Style = "display:none" })%>
                 <input type="hidden" id="url" name="url"/>
                  
                <br /><br />
                   <label class="form-label"> Chọn ngôn ngữ  </label>
                    <%= Html.DropDownList("LanguagesID", (SelectList)ViewData["ListLanguage"], "--Chọn ngôn ngữ--", new { @class = "width20" })%>  
                   
                  <br /><br />                  
                 <label class="form-label"> Kích hoạt </label>
                 <%if (Model.SupportActive == true)
                   {
                   %>
                        <%=Html.CheckBox("SupportActive", true)%>
                   <%
                   }
                   else
                   {
                       if ((bool)ViewData["IsAdd"])
                       {
                       %>
                        <%=Html.CheckBox("SupportActive", true)%>
                       <%
                       }
                       else
                       { 
                       %>
                        <%=Html.CheckBox("SupportActive", false)%>
                       <%
                       }

                   } 
                    %>
<br /><br />
                <label class="form-label">Tài khoản </label>
                <%= Html.TextBoxFor(m => m.SupportAccount, new { @class = "form-field small" })%>
                <br /><br />
                <label class="form-label"> Phân loại </label>
                <%= Html.TextBoxFor(m => m.Sort, new { @class = "form-field half" })%>
                 <p>
                <%=ViewData["Result"]%>
                </p>
                    
                 <input type="submit" value="" class="button white_input save_input "/> <!--Button Save-->
                 <a class="button white" href="javascript:history.back();"><span class="icon_text cancel"></span>Đóng</a> <!--Button Close-->
                    
                 
	        </div>
	    </div>
        
        <div class="clear"></div>
    
    
    <%}
                catch { }
            } %>
    

</asp:Content>
